package bean;

import java.io.Serializable;
import javax.persistence.*;

@Entity
@Table (name = "proveedores")
public class Proveedor implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	private String cuil;
	private String razonSocial;
	
	public Proveedor() {
		super();
	}

	public String getCuil() {
		return cuil;
	}

	public void setCuil(String cuil) {
		this.cuil = cuil;
	}

	public String getRazonSocial() {
		return razonSocial;
	}

	public void setRazonSocial(String razonSocial) {
		this.razonSocial = razonSocial;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null) return false;
		if (! (obj instanceof Proveedor)) return false;
		Proveedor temp = (Proveedor) obj;
		return this.cuil.equals(temp.cuil);
	}

	@Override
	public int hashCode() {
		
		return super.hashCode();
	}
	

	
}
